/*
 * @Author: myw
 * @Email: 516378746@qq.com
 * @Date: 2020-02-24 08:48:28
 * @Descripttion: 
 */
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { DepartmentManageComponent } from "./department-manage/department-manage.component"
import { DictionaryManageComponent } from "./dictionary-manage/dictionary-manage.component";
import { MenuManageComponent } from "./menu-manage/menu-manage.component";
import { RoleManageComponent } from "./role-manage/role-manage.component";
import { UserManageComponent } from "./user-manage/user-manage.component";
import { AuditManageComponent } from './audit-manage/audit-manage.component';

const routes: Routes = [
    {
        path: "userManage",
        data: {
            title: "用户管理",
            uid: 21,
            isLastLevel : true,
            useCache : true,
        },
        component: UserManageComponent
    },
    {
        path: "roleManage",
        data: {
            title: "角色管理",
            uid: 22,
            isLastLevel : true,
            useCache : true,
        },
        component: RoleManageComponent
    },
    {
        path: "menuManage",
        data: {
            title: "菜单管理",
            uid: 23,
            isLastLevel : true,
            useCache : true,
        },
        component: MenuManageComponent
    },
    {
        path: "departmentManage",
        data: {
            title: "部门管理",
            uid: 24,
            isLastLevel : true,
            useCache : true,
        },
        component: DepartmentManageComponent
    },
    {
        path: "dictionaryManage",
        data: {
            title: "字典管理",
            uid: 25,
            isLastLevel : true,
            useCache : true,
        },
        component: DictionaryManageComponent
    },
    {
        path: "auditManage",
        data: {
            title: "审批管理",
            uid: 26,
            isLastLevel : true,
            useCache : true,
        },
        component: AuditManageComponent
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class SystemManageRoutingModule { }
